package entity;

/**
 * 实体类：
 *  1.具有私有的方法
 *  2.具有封装方法
 *  3.具有构造方法
 *  4.重写equals方法和hashcode方法
 *
 *  实体类通常是个名词
 */

public class User {
    public String getUserName() {
        return UserName;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public String getUserPasswored() {
        return UserPasswored;
    }

    public void setUserPasswored(String userPasswored) {
        UserPasswored = userPasswored;
    }

    //用户名
    private String UserName;
    //密码
    private String UserPasswored;

   //给个有参构造方法
    public User(String userName,String userPasswored){
        this.UserName = userName;
        this.UserPasswored = userPasswored;
    }

}
